package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 银行账户对象 bank_account
 * 
 * @author sauger
 * @date 2022-04-01
 */
public class BankAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 排序 */
    @Excel(name = "排序")
    private Integer priority;

    /** 币别 */
    @Excel(name = "币别")
    private String currency;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 账号 */
    @Excel(name = "账号")
    private String number;

    /** 账户资金 */
    @Excel(name = "账户资金")
    private BigDecimal account;

    /** 起始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerDate;

    /** 对账面板 */
    @Excel(name = "对账面板")
    private Integer isFlow;

    /** 账户性质 */
    @Excel(name = "账户性质")
    private String props;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contact;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPriority(Integer priority) 
    {
        this.priority = priority;
    }

    public Integer getPriority() 
    {
        return priority;
    }
    public void setCurrency(String currency) 
    {
        this.currency = currency;
    }

    public String getCurrency() 
    {
        return currency;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setAccount(BigDecimal account) 
    {
        this.account = account;
    }

    public BigDecimal getAccount() 
    {
        return account;
    }
    public void setRegisterDate(Date registerDate) 
    {
        this.registerDate = registerDate;
    }

    public Date getRegisterDate() 
    {
        return registerDate;
    }
    public void setIsFlow(Integer isFlow) 
    {
        this.isFlow = isFlow;
    }

    public Integer getIsFlow() 
    {
        return isFlow;
    }
    public void setProps(String props) 
    {
        this.props = props;
    }

    public String getProps() 
    {
        return props;
    }
    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("priority", getPriority())
            .append("currency", getCurrency())
            .append("name", getName())
            .append("number", getNumber())
            .append("account", getAccount())
            .append("registerDate", getRegisterDate())
            .append("isFlow", getIsFlow())
            .append("props", getProps())
            .append("contact", getContact())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("address", getAddress())
            .append("remark", getRemark())
            .toString();
    }
}
